package cn.tac.test.spring.bean.xml.impl;

import cn.tac.test.spring.bean.xml.GreetingBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * Created by tac on 15/04/2017.
 */
public class SayHello implements GreetingBean, InitializingBean {


    private String target;

    public String greeting() {
        return "hello " + target;
    }

    public void afterPropertiesSet() throws Exception {
        target = "world";
    }

}
